/*
 * UMLprojectView.java
 */

package umlproject;

import org.jdesktop.application.Action;
import org.jdesktop.application.ResourceMap;
import org.jdesktop.application.SingleFrameApplication;
import org.jdesktop.application.FrameView;
import org.jdesktop.application.TaskMonitor;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.Timer;
import javax.swing.Icon;
import javax.swing.JDialog;
import javax.swing.JFrame;

/**
 * The application's main frame.
 */
public class UMLprojectView extends FrameView {
    static Filmdatabase films;
    
    
        
    

    public UMLprojectView(SingleFrameApplication app) {
        super(app);

        initComponents();
        
        //initialisation de la base de donnée
        films = new Filmdatabase();
        films.put(0,"Star Wars", 12, 48, "yahoo");
        films.put(1, "The Artist", 20, 22, "le bon coin");
        films.put(2, "Easy Rider", 24, 22, "PriceMinister");
        films.put(3, "le grand restaurant", 15, 72, "CDiscount");
        films.put(4, "La môme", 20 , 48 ,"EBay");
        films.put(5, "Drive", 20, 48, "Amazon");
        films.put(6, "Fear and Loathing in Las Vegas", 22, 25, "pirateBay");
        
        //here we initialize the filmdatabase
        siteAchat.setVisible(false);
        Title.setVisible(false);
        Director.setVisible(false);
        Actors.setVisible(false);
        Plot.setVisible(false);
        Prix.setVisible(false);
        TempsLivraison.setVisible(false);
        siteAchat.setVisible(false);
        Felicitation.setVisible(false);
        ErrorLabel.setVisible(false);
        jAchat.setVisible(false);
       
        // status bar initialization - message timeout, idle icon and busy animation, etc
        ResourceMap resourceMap = getResourceMap();
        int messageTimeout = resourceMap.getInteger("StatusBar.messageTimeout");
        messageTimer = new Timer(messageTimeout, new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                statusMessageLabel.setText("");
            }
        });
        messageTimer.setRepeats(false);
        int busyAnimationRate = resourceMap.getInteger("StatusBar.busyAnimationRate");
        for (int i = 0; i < busyIcons.length; i++) {
            busyIcons[i] = resourceMap.getIcon("StatusBar.busyIcons[" + i + "]");
        }
        busyIconTimer = new Timer(busyAnimationRate, new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                busyIconIndex = (busyIconIndex + 1) % busyIcons.length;
                statusAnimationLabel.setIcon(busyIcons[busyIconIndex]);
            }
        });
        idleIcon = resourceMap.getIcon("StatusBar.idleIcon");
        statusAnimationLabel.setIcon(idleIcon);
        progressBar.setVisible(false);

        // connecting action tasks to status bar via TaskMonitor
        TaskMonitor taskMonitor = new TaskMonitor(getApplication().getContext());
        taskMonitor.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
            public void propertyChange(java.beans.PropertyChangeEvent evt) {
                String propertyName = evt.getPropertyName();
                if ("started".equals(propertyName)) {
                    if (!busyIconTimer.isRunning()) {
                        statusAnimationLabel.setIcon(busyIcons[0]);
                        busyIconIndex = 0;
                        busyIconTimer.start();
                    }
                    progressBar.setVisible(true);
                    progressBar.setIndeterminate(true);
                } else if ("done".equals(propertyName)) {
                    busyIconTimer.stop();
                    statusAnimationLabel.setIcon(idleIcon);
                    progressBar.setVisible(false);
                    progressBar.setValue(0);
                } else if ("message".equals(propertyName)) {
                    String text = (String)(evt.getNewValue());
                    statusMessageLabel.setText((text == null) ? "" : text);
                    messageTimer.restart();
                } else if ("progress".equals(propertyName)) {
                    int value = (Integer)(evt.getNewValue());
                    progressBar.setVisible(true);
                    progressBar.setIndeterminate(false);
                    progressBar.setValue(value);
                }
            }
        });
    }

    @Action
    public void showAboutBox() {
        if (aboutBox == null) {
            JFrame mainFrame = UMLprojectApp.getApplication().getMainFrame();
            aboutBox = new UMLprojectAboutBox(mainFrame);
            aboutBox.setLocationRelativeTo(mainFrame);
        }
        UMLprojectApp.getApplication().show(aboutBox);
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        mainPanel = new javax.swing.JPanel();
        ChampRecherche = new javax.swing.JTextField();
        jButtonRecherche = new javax.swing.JButton();
        jLabelNomDuFilm = new javax.swing.JLabel();
        Title = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();
        Director = new javax.swing.JLabel();
        acteurs = new javax.swing.JLabel();
        Actors = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        Plot = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jSearchAchat = new javax.swing.JButton();
        jLabel5 = new javax.swing.JLabel();
        Prix = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        TempsLivraison = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        siteAchat = new javax.swing.JLabel();
        ErrorLabel = new javax.swing.JLabel();
        jAchat = new javax.swing.JButton();
        Felicitation = new javax.swing.JLabel();
        menuBar = new javax.swing.JMenuBar();
        javax.swing.JMenu fileMenu = new javax.swing.JMenu();
        javax.swing.JMenuItem exitMenuItem = new javax.swing.JMenuItem();
        javax.swing.JMenu helpMenu = new javax.swing.JMenu();
        javax.swing.JMenuItem aboutMenuItem = new javax.swing.JMenuItem();
        statusPanel = new javax.swing.JPanel();
        javax.swing.JSeparator statusPanelSeparator = new javax.swing.JSeparator();
        statusMessageLabel = new javax.swing.JLabel();
        statusAnimationLabel = new javax.swing.JLabel();
        progressBar = new javax.swing.JProgressBar();
        jDialog1 = new javax.swing.JDialog();

        mainPanel.setName("mainPanel"); // NOI18N

        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(umlproject.UMLprojectApp.class).getContext().getResourceMap(UMLprojectView.class);
        ChampRecherche.setText(resourceMap.getString("ChampRecherche.text")); // NOI18N
        ChampRecherche.setName("ChampRecherche"); // NOI18N

        jButtonRecherche.setText(resourceMap.getString("jButtonRecherche.text")); // NOI18N
        jButtonRecherche.setName("jButtonRecherche"); // NOI18N
        jButtonRecherche.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButtonRechercheMouseClicked(evt);
            }
        });

        jLabelNomDuFilm.setText(resourceMap.getString("jLabelNomDuFilm.text")); // NOI18N
        jLabelNomDuFilm.setName("jLabelNomDuFilm"); // NOI18N

        Title.setText(resourceMap.getString("Title.text")); // NOI18N
        Title.setName("Title"); // NOI18N

        jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N
        jLabel1.setName("jLabel1"); // NOI18N

        Director.setText(resourceMap.getString("Director.text")); // NOI18N
        Director.setName("Director"); // NOI18N

        acteurs.setText(resourceMap.getString("acteurs.text")); // NOI18N
        acteurs.setName("acteurs"); // NOI18N

        Actors.setText(resourceMap.getString("Actors.text")); // NOI18N
        Actors.setName("Actors"); // NOI18N

        jLabel2.setText(resourceMap.getString("jLabel2.text")); // NOI18N
        jLabel2.setName("jLabel2"); // NOI18N

        Plot.setText(resourceMap.getString("Plot.text")); // NOI18N
        Plot.setName("Plot"); // NOI18N

        jLabel3.setText(resourceMap.getString("jLabel3.text")); // NOI18N
        jLabel3.setName("jLabel3"); // NOI18N

        jLabel4.setText(resourceMap.getString("jLabel4.text")); // NOI18N
        jLabel4.setName("jLabel4"); // NOI18N

        jSearchAchat.setText(resourceMap.getString("jSearchAchat.text")); // NOI18N
        jSearchAchat.setName("jSearchAchat"); // NOI18N
        jSearchAchat.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jSearchAchatMouseClicked(evt);
            }
        });

        jLabel5.setText(resourceMap.getString("jLabel5.text")); // NOI18N
        jLabel5.setName("jLabel5"); // NOI18N

        Prix.setText(resourceMap.getString("Prix.text")); // NOI18N
        Prix.setName("Prix"); // NOI18N

        jLabel6.setText(resourceMap.getString("jLabel6.text")); // NOI18N
        jLabel6.setName("jLabel6"); // NOI18N

        TempsLivraison.setText(resourceMap.getString("TempsLivraison.text")); // NOI18N
        TempsLivraison.setName("TempsLivraison"); // NOI18N

        jLabel7.setText(resourceMap.getString("jLabel7.text")); // NOI18N
        jLabel7.setName("jLabel7"); // NOI18N

        siteAchat.setText(resourceMap.getString("siteAchat.text")); // NOI18N
        siteAchat.setName("siteAchat"); // NOI18N

        ErrorLabel.setText(resourceMap.getString("ErrorLabel.text")); // NOI18N
        ErrorLabel.setName("ErrorLabel"); // NOI18N

        jAchat.setText(resourceMap.getString("jAchat.text")); // NOI18N
        jAchat.setName("jAchat"); // NOI18N
        jAchat.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jAchatMouseClicked(evt);
            }
        });

        Felicitation.setText(resourceMap.getString("Felicitation.text")); // NOI18N
        Felicitation.setName("Felicitation"); // NOI18N

        javax.swing.GroupLayout mainPanelLayout = new javax.swing.GroupLayout(mainPanel);
        mainPanel.setLayout(mainPanelLayout);
        mainPanelLayout.setHorizontalGroup(
            mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(mainPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(mainPanelLayout.createSequentialGroup()
                        .addGap(16, 16, 16)
                        .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 175, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(Actors)
                            .addComponent(acteurs)
                            .addComponent(jLabelNomDuFilm, javax.swing.GroupLayout.PREFERRED_SIZE, 65, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(Title)
                            .addComponent(jLabel1)
                            .addComponent(Director)
                            .addComponent(Plot)
                            .addComponent(jLabel2)
                            .addComponent(jSearchAchat)))
                    .addGroup(mainPanelLayout.createSequentialGroup()
                        .addComponent(ChampRecherche, javax.swing.GroupLayout.PREFERRED_SIZE, 119, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jButtonRecherche)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 225, Short.MAX_VALUE)
                .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(Felicitation)
                    .addComponent(Prix)
                    .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel6)
                    .addComponent(TempsLivraison)
                    .addComponent(jLabel7)
                    .addComponent(siteAchat)
                    .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(ErrorLabel)
                    .addComponent(jAchat, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(208, Short.MAX_VALUE))
        );
        mainPanelLayout.setVerticalGroup(
            mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(mainPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(ChampRecherche, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(ErrorLabel)
                    .addComponent(jButtonRecherche))
                .addGap(35, 35, 35)
                .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(27, 27, 27)
                .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelNomDuFilm)
                    .addComponent(jLabel5))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(Title)
                    .addComponent(Prix))
                .addGap(16, 16, 16)
                .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel1)
                    .addComponent(jLabel6))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(Director)
                    .addComponent(TempsLivraison))
                .addGap(18, 18, 18)
                .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(acteurs)
                    .addComponent(jLabel7))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(Actors)
                    .addComponent(siteAchat))
                .addGap(18, 18, 18)
                .addComponent(jLabel2)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(Plot)
                .addGap(39, 39, 39)
                .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jSearchAchat)
                    .addComponent(jAchat))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(Felicitation)
                .addContainerGap(51, Short.MAX_VALUE))
        );

        menuBar.setName("menuBar"); // NOI18N

        fileMenu.setText(resourceMap.getString("fileMenu.text")); // NOI18N
        fileMenu.setName("fileMenu"); // NOI18N

        javax.swing.ActionMap actionMap = org.jdesktop.application.Application.getInstance(umlproject.UMLprojectApp.class).getContext().getActionMap(UMLprojectView.class, this);
        exitMenuItem.setAction(actionMap.get("quit")); // NOI18N
        exitMenuItem.setName("exitMenuItem"); // NOI18N
        fileMenu.add(exitMenuItem);

        menuBar.add(fileMenu);

        helpMenu.setText(resourceMap.getString("helpMenu.text")); // NOI18N
        helpMenu.setName("helpMenu"); // NOI18N

        aboutMenuItem.setAction(actionMap.get("showAboutBox")); // NOI18N
        aboutMenuItem.setName("aboutMenuItem"); // NOI18N
        helpMenu.add(aboutMenuItem);

        menuBar.add(helpMenu);

        statusPanel.setName("statusPanel"); // NOI18N

        statusPanelSeparator.setName("statusPanelSeparator"); // NOI18N

        statusMessageLabel.setName("statusMessageLabel"); // NOI18N

        statusAnimationLabel.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        statusAnimationLabel.setName("statusAnimationLabel"); // NOI18N

        progressBar.setName("progressBar"); // NOI18N

        javax.swing.GroupLayout statusPanelLayout = new javax.swing.GroupLayout(statusPanel);
        statusPanel.setLayout(statusPanelLayout);
        statusPanelLayout.setHorizontalGroup(
            statusPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(statusPanelSeparator, javax.swing.GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE)
            .addGroup(statusPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(statusMessageLabel)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 615, Short.MAX_VALUE)
                .addComponent(progressBar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(statusAnimationLabel)
                .addContainerGap())
        );
        statusPanelLayout.setVerticalGroup(
            statusPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(statusPanelLayout.createSequentialGroup()
                .addComponent(statusPanelSeparator, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(statusPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(statusMessageLabel)
                    .addComponent(statusAnimationLabel)
                    .addComponent(progressBar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(3, 3, 3))
        );

        jDialog1.setName("jDialog1"); // NOI18N

        javax.swing.GroupLayout jDialog1Layout = new javax.swing.GroupLayout(jDialog1.getContentPane());
        jDialog1.getContentPane().setLayout(jDialog1Layout);
        jDialog1Layout.setHorizontalGroup(
            jDialog1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 400, Short.MAX_VALUE)
        );
        jDialog1Layout.setVerticalGroup(
            jDialog1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 300, Short.MAX_VALUE)
        );

        setComponent(mainPanel);
        setMenuBar(menuBar);
        setStatusBar(statusPanel);
    }// </editor-fold>//GEN-END:initComponents

private void jButtonRechercheMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButtonRechercheMouseClicked
    String NomFilm;
    imdb IMDBinfo;
    
    //hide information for paying part
    Prix.setVisible(false);
    TempsLivraison.setVisible(false);
    siteAchat.setVisible(false);
    Felicitation.setVisible(false);
    ErrorLabel.setVisible(false);
    jAchat.setVisible(false);
    jAchat.setVisible(false);
    Felicitation.setVisible(false);
    Felicitation.setText("");
    
    //retrieve the Title given by the user
    NomFilm = ChampRecherche.getText();
    
    //retrieve the information returned by the imdb source
    String info = ServeurIMDB.connectionIMDB(NomFilm);
    System.out.println(info);
    
    //put the informations into a IMDB structure
    IMDBinfo = new imdb();
    IMDBinfo.decoupeReponseImdb(info);
    
    //Display the information
    Title.setVisible(true);
    Title.setText(IMDBinfo.Title);
    Director.setVisible(true);
    Director.setText(IMDBinfo.Director);
    Actors.setVisible(true);
    Actors.setText(IMDBinfo.Actors);
    Plot.setVisible(true);
    Plot.setText(IMDBinfo.Plot);
}//GEN-LAST:event_jButtonRechercheMouseClicked

private void jSearchAchatMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jSearchAchatMouseClicked
    String NomFilm = Title.getText();
    int index = films.surchIndex(NomFilm);
    if(index == -1){
        ErrorLabel.setVisible(true);
        ErrorLabel.setText("film introuvable chez nos sites partenaires");  
    }
    else{
        Prix.setVisible(true);
        Prix.setText(Integer.toString(films.get(index).price) + " euros");
        TempsLivraison.setVisible(true);
        TempsLivraison.setText(Integer.toString(films.get(index).TempsLivraison) + " heures");
        siteAchat.setVisible(true);
        siteAchat.setText(films.get(index).siteAchat);
        jAchat.setVisible(true);
    }
}//GEN-LAST:event_jSearchAchatMouseClicked

private void jAchatMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jAchatMouseClicked
    Felicitation.setVisible(true);
    Felicitation.setText("<html>votre commande a bien été prise en compte<br>merci d'avoir choisis notre logiciel</html>");
}//GEN-LAST:event_jAchatMouseClicked

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel Actors;
    private javax.swing.JTextField ChampRecherche;
    private javax.swing.JLabel Director;
    private javax.swing.JLabel ErrorLabel;
    private javax.swing.JLabel Felicitation;
    private javax.swing.JLabel Plot;
    private javax.swing.JLabel Prix;
    private javax.swing.JLabel TempsLivraison;
    private javax.swing.JLabel Title;
    private javax.swing.JLabel acteurs;
    private javax.swing.JButton jAchat;
    private javax.swing.JButton jButtonRecherche;
    private javax.swing.JDialog jDialog1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabelNomDuFilm;
    private javax.swing.JButton jSearchAchat;
    private javax.swing.JPanel mainPanel;
    private javax.swing.JMenuBar menuBar;
    private javax.swing.JProgressBar progressBar;
    private javax.swing.JLabel siteAchat;
    private javax.swing.JLabel statusAnimationLabel;
    private javax.swing.JLabel statusMessageLabel;
    private javax.swing.JPanel statusPanel;
    // End of variables declaration//GEN-END:variables

    private final Timer messageTimer;
    private final Timer busyIconTimer;
    private final Icon idleIcon;
    private final Icon[] busyIcons = new Icon[15];
    private int busyIconIndex = 0;

    private JDialog aboutBox;
}
